From: Carlos Soriano Date: Fri, 20 Feb 2015 09:35:30 +0000 (+0100) Subject: popupMenu: Use a StWidget instead of a Separator X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1751 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=43ada376f8502dd2976597eb04cfe425bf203588;p=gnome-shell.git popupMenu: Use a StWidget instead of a Separator We don't use the gradient part of a Separator, so we can just use a StWidget instead and shut up some warnings --- diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index 3baf71fc5..ffa78e5ce 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -264,8 +264,8 @@ const PopupSeparatorMenuItem = new Lang.Class({ Lang.bind(this, this._syncVisibility)); this._syncVisibility(); - this._separator = new Separator.HorizontalSeparator({ style_class: 'popup-separator-menu-item' }); - this.actor.add(this._separator.actor, { expand: true }); + this._separator = new St.Widget({ style_class: 'popup-separator-menu-item' }); + this.actor.add(this._separator, { expand: true }); }, _syncVisibility: function() {